import Vue from 'vue'
import VueRouter from 'vue-router'

//引入布局
import Layout from '../views/layout/Layout.vue'

Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    component : Layout,
    redirect:"/apimanage/apiUnifiedmanagement",
    children: [
      {
        path: '/apimanage/apiUnifiedmanagement',
        component: () => import('@/views/apiManage/ApiUnifiedmanagement.vue'),
      }
    ]
  },
  // 数据安全能力
  {
    path:"/apimanage",
    component : Layout,
    children: [
      {
        path: '/apimanage',
        component: () => import('@/views/apiManage/ApiUnifiedmanagement.vue'),
      },
    ]
  },
  // 安全管理能力
  {
    path:"/group",
    component : Layout,
    redirect:"/group/group",
    children: [
      {
        path: '/group/group',
        component: () => import('@/views/Group/GroupManagement.vue'),
      },
      {
        path: '/group/group2',
        component: () => import('@/views/Group/fenlei.vue'),
      },
      {
        path: '/group/group3',
        component: () => import('@/views/Group/data.vue'),
      },
      {
        path: '/group/group4',
        component: () => import('@/views/Group/fengjifenlei.vue'),
      },
      {
        path: '/group/group5',
        component: () => import('@/views/Group/terminal.vue'),
      }
    ]
  },
  // 信息脱敏能力
  {
    path:"/callermanagement",
    component : Layout,
    redirect:"/callermanagement/callermanagement",
    children: [
      {
        path: '/callermanagement/callermanagement',
        component: () => import('@/views/callerManagement/CallerManagement.vue'),

      },
      {
        path: '/callermanagement/callermanagement2',
        component: () => import('@/views/callerManagement/CallerManagement2.vue'),

      },
      {
        path: '/callermanagement/callermanagement3',
        component: () => import('@/views/callerManagement/CallerManagement3.vue'),
      },
      {
        path: '/callermanagement/callermanagement4',
        component: () => import('@/views/callerManagement/CallerManagement4.vue'),
      },
      {
        path: '/callermanagement/callermanagement5',
        component: () => import('@/views/callerManagement/CallerManagement5.vue'),
      },
      {
        path: '/callermanagement/callermanagement6',
        component: () => import('@/views/callerManagement/CallerManagement6.vue'),
      },
      {
        path: '/callermanagement/callermanagement7',
        component: () => import('@/views/callerManagement/CallerManagement7.vue'),
      },
      {
        path: '/callermanagement/callermanagement8',
        component: () => import('@/views/callerManagement/CallerManagement8.vue'),
      },
      {
        path: '/callermanagement/callermanagement9',
        component: () => import('@/views/callerManagement/CallerManagement9.vue'),
      },
      {
        path: '/callermanagement/callermanagement10',
        component: () => import('@/views/callerManagement/CallerManagement10.vue'),
      },
    ]
    // component: () => import('@/views/callerManagement/CallerManagement.vue'),
     
  },
  // 安全评估能力
   {
    path:"/interfaceStatistics",
    component : Layout,
    redirect:"/interfaceStatistics/interfaceStatistics",
    children: [
      {
        path: '/interfaceStatistics/interfaceStatistics',
        component: () => import('@/views/interfaceStatistics/InterfaceStatistics.vue'),
      },
      {
        path: '/interfaceStatistics/interfaceStatistics2',
        component: () => import('@/views/interfaceStatistics/InterfaceStatistics2.vue'),
      },
      {
        path: '/interfaceStatistics/interfaceStatistics3',
        component: () => import('@/views/interfaceStatistics/InterfaceStatistics3.vue'),
      },
      {
        path: '/interfaceStatistics/interfaceStatistics4',
        component: () => import('@/views/interfaceStatistics/InterfaceStatistics4.vue'),
      },
      {
        path: '/interfaceStatistics/interfaceStatistics5',
        component: () => import('@/views/interfaceStatistics/InterfaceStatistics5.vue'),
      },
      {
        path: '/interfaceStatistics/interfaceStatistics6',
        component: () => import('@/views/interfaceStatistics/InterfaceStatistics6.vue'),
      },
    ] 
  },
  // 安全运营能力
  {
    path:"/apiQuery",
    component : Layout,
    children: [
      {
        path: '/apiQuery',
        component: () => import('@/views/apiQuery/ApiQuery.vue'),
      },
    ] 
  },
]

const router = new VueRouter({
  routes
})

export default router
